package com.ryan.mms.privilage.dto;

import java.util.Date;
import java.util.List;

import com.ryan.framework.dto.Dto;
import com.ryan.mms.organization.dto.OrganizationDto;
import com.ryan.mms.position.dto.PositionDto;

public class EmployeeDto implements Dto{
	private Long employeeId;
	private String employeeCode;
	private String employeeName;
	private OrganizationDto organizationDto;
	private List<PositionDto> positionDtos;
	private String positionNames;
	private String officeTel;
	private String officePhone;
	private String officeEmail;
	private String homeAddress;
	private String zipCode;
	private String personalTel;
	private String personalPhone;
	private String personalEmail;
	private String idCard;
	private Date birthday;
	private Integer gender;
	private Integer education;
	private String hobby;
	private String specialty;
	private String training;
	private Date regeditDate;
	private Date createTime;
	private Date lastModifyTime;
	private Date fromCreateTime;
	private Date toCreateTime;
	
	public Long getEmployeeId() {
		return employeeId;
	}
	public void setEmployeeId(Long employeeId) {
		this.employeeId = employeeId;
	}
	public String getEmployeeCode() {
		return employeeCode;
	}
	public void setEmployeeCode(String employeeCode) {
		this.employeeCode = employeeCode;
	}
	public String getEmployeeName() {
		return employeeName;
	}
	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}
	public OrganizationDto getOrganizationDto() {
		return organizationDto;
	}
	public void setOrganizationDto(OrganizationDto organizationDto) {
		this.organizationDto = organizationDto;
	}
	public List<PositionDto> getPositionDtos() {
		return positionDtos;
	}
	public void setPositionDtos(List<PositionDto> positionDtos) {
		this.positionDtos = positionDtos;
	}
	public String getOfficeTel() {
		return officeTel;
	}
	public void setOfficeTel(String officeTel) {
		this.officeTel = officeTel;
	}
	public String getOfficePhone() {
		return officePhone;
	}
	public void setOfficePhone(String officePhone) {
		this.officePhone = officePhone;
	}
	public String getOfficeEmail() {
		return officeEmail;
	}
	public void setOfficeEmail(String officeEmail) {
		this.officeEmail = officeEmail;
	}
	public String getHomeAddress() {
		return homeAddress;
	}
	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}
	public String getZipCode() {
		return zipCode;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	public String getPersonalTel() {
		return personalTel;
	}
	public void setPersonalTel(String personalTel) {
		this.personalTel = personalTel;
	}
	public String getPersonalPhone() {
		return personalPhone;
	}
	public void setPersonalPhone(String personalPhone) {
		this.personalPhone = personalPhone;
	}
	public String getPersonalEmail() {
		return personalEmail;
	}
	public void setPersonalEmail(String personalEmail) {
		this.personalEmail = personalEmail;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	public Integer getEducation() {
		return education;
	}
	public void setEducation(Integer education) {
		this.education = education;
	}
	public String getHobby() {
		return hobby;
	}
	public void setHobby(String hobby) {
		this.hobby = hobby;
	}
	public String getSpecialty() {
		return specialty;
	}
	public void setSpecialty(String specialty) {
		this.specialty = specialty;
	}
	public String getTraining() {
		return training;
	}
	public void setTraining(String training) {
		this.training = training;
	}
	public Date getRegeditDate() {
		return regeditDate;
	}
	public void setRegeditDate(Date regeditDate) {
		this.regeditDate = regeditDate;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	public Date getFromCreateTime() {
		return fromCreateTime;
	}
	public void setFromCreateTime(Date fromCreateTime) {
		this.fromCreateTime = fromCreateTime;
	}
	public String getPositionNames() {
		return positionNames;
	}
	public void setPositionNames(String positionNames) {
		this.positionNames = positionNames;
	}
	public Date getToCreateTime() {
		return toCreateTime;
	}
	public void setToCreateTime(Date toCreateTime) {
		this.toCreateTime = toCreateTime;
	}
	public String getPositionDtoStr() {
		StringBuilder positionDtostrBuilder = new StringBuilder();
		if(null!=positionDtos&&!positionDtos.isEmpty()){
			for(PositionDto positionDto :positionDtos){
				positionDtostrBuilder.append(",").append(positionDto.getPositionName());
			}
			return positionDtostrBuilder.substring(1);
		}else{
			return positionDtostrBuilder.toString();
		}
	}
}